ABC122 B - ATCoder
https://atcoder.jp/contests/abc122/tasks/abc122_b
提出
code: python
s = input()
ans = 0
tmp = 0
for i in range(len(s)):
if (si == "A" or si == "C" or si == "G" or si == "T"):
tmp += 1
if (tmp > ans):
ans = tmp
else:
tmp = 0
print(ans)